package org.bozo.im.activity.chat;

import org.bozo.im.R;

import android.app.Activity;
import android.content.Context;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class ChatActivity extends Activity {

	private View mView;
	
	@Override
	protected void onStart() {
		super.onStart();
		
		LayoutInflater lInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		
		mView = lInflater.inflate(R.layout.chat, null);
		
		setContentView(mView);
		
		Uri lDataUri = getIntent().getData();
		String pProtocol = lDataUri.getHost();
		String pLogin = lDataUri.getPath();
		
		TextView lText = (TextView)mView.findViewById(R.id.chat_text);
		lText.setText("Protocol: " + pProtocol + " | Login: " + pLogin);
	}
	
}
